﻿@if (Session["PortalLoginUser"] != null)
{
    <p>
        Hello, @((Session["PortalLoginUser"] as smartcrm.Models.PortalUser).LoginName)
        @Html.ActionLink("退出", "Logout", "Portal") 
    </p>     
    
} else {
    <ul>        
        <li>@Html.ActionLink("登录", "Login", "Portal", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
